package com.edu.zut.cs.controller;


import com.edu.zut.cs.pojo.Result;
import com.edu.zut.cs.pojo.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author xuwenke
 * @since 2021-09-06
 */
@Api(tags = "用户")
@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/login")
    public Result login() {
        System.out.println("登录成功");
        Result t = new Result();
        t.setData(1);
        t.setMsg("登录成功");
        t.setCode("200");
        return t;
    }
}
